<!DOCTYPE html>
<html>
	<head>
		<title>我关注的商品</title>
	<meta charset="utf-8" />
		<meta name="author" content="m.wine22.com">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">

		<link rel="stylesheet" type="text/css" href="/css/base.css" charset="UTF-8" />
		<link rel="stylesheet" type="text/css" href="/css/cart.css" />
	</head>

	<body>
	<#assign title="关注商品">
	<#include "/common/header-user.html">
		
		<#if favorites?? && favorites?size gt 0>
		<div class="focus-total">
			<div>您关注了<span id="wareNumber">${(favorites?size)!0}</span>件商品</div>
			<div id="editBtn">批量编辑</div>
		</div>
		</#if>
		
 		<#if favorites?? && favorites?size gt 0>
		<div class="cart-list focus-list clear">
		 	<ul>
		 		<#list favorites as item>
				<li class="clear" favId=${(item.id)!0}>
					<div class="cart-list-check" style="display: none;">
						<span class="cart-list-check-icon-no" checked="false" ></span>
					</div>
					<a href="/ware/${(item.wareId)!0}.html">
						<div class="cart-list-img focus-list-img"><img src="${(item.mainImage)!""}" alt="${(item.wareName)!""}-渝酒坊"/></div>
					</a>
					<div class="cart-list-info">
						<a href="/ware/${(item.wareId)!0}.html">
							<div>${(item.wareName)!""}</div>
						</a>
						<div class="cart-list-info-num focus-list-btn">
							<a href="javascript:void(0);" id="addCartBtm" wareId=${(item.wareId)!0}>
								<div class="btn-comm">加入购物车</div>
							</a>
						</div>
						<!-- 
						<div class="cart-list-info-del">
							<span class="cart-list-info-del-icon"></span>
						</div>
						 -->
					</div>
				</li>
				</#list>
			</ul>
		</div>
		<#else>
		<div class="icon-cart" >
			<a href="/ware/list.html">
				<span class="icon-order-no"></span>
				<p>您还没有关注商品，点我去找找喜欢的商品吧！</p>
			</a>
		</div>
		</#if>
		
		<!-- 底部按钮 -->
		<div class="tools-btm sett-btm" style="display:none;">
			<div class="tools-btm-left sett-btm-left">
				<div class="cart-list-check" id="selectAll">
					<span class="cart-list-check-icon-no" checked="false" style="margin-top: 7px;"></span>
				</div>
			</div>
			<div class="tools-btm-right red-yellow-color sett-btm-right">
				<a href="javascript:void(0);" id="cancelFavorite">取消关注</a>
			</div>
		</div>
	</body>
	
<script type="text/javascript" src="/js/layer/layer.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
	<script type="text/javascript" src="/js/biz/favorite.js"></script>

</html>